package com.suyuan.vo;

import com.suyuan.entity.HotProduct;
import com.suyuan.entity.ProPic;
import com.suyuan.entity.ProductInfo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 热门商品VO
 *
 * 数据结构为一个商品的大图+两个商品对象信息。
 *
 */
public class HotProductVO implements Serializable{

    private Integer id;

    private ProPic propic;

    private List<ProductInfo> productes;

    public ProPic getPropic() {
        return propic;
    }

    public void setPropic(ProPic propic) {
        this.propic = propic;
    }

    public List<ProductInfo> getProductes() {
        return productes;
    }

    public void setProductes(List<ProductInfo> productes) {
        this.productes = productes;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public HotProductVO(){}

    public HotProductVO(Integer id,ProPic propic, List<ProductInfo> productes) {
        this.id = id;
        this.propic = propic;
        this.productes = productes;
    }

    @Override
    public String toString() {
        return "HotProductVO{" +
                "propic=" + propic +
                ", productes=" + productes +
                '}';
    }
}
